<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpAdaptiveSupersample: GIMP 3 Color Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Color Library Reference Manual">
<link rel="up" href="pt01.html" title="Part I. GIMP Color Library">
<link rel="prev" href="GimpColorTransform.html" title="GimpColorTransform">
<link rel="next" href="libgimpcolor3-GimpBilinear.html" title="GimpBilinear">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libgimpcolor3-GimpAdaptiveSupersample.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="pt01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GimpColorTransform.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgimpcolor3-GimpBilinear.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libgimpcolor3-GimpAdaptiveSupersample"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpcolor3-GimpAdaptiveSupersample.top_of_page"></a>GimpAdaptiveSupersample</span></h2>
<p>GimpAdaptiveSupersample — Functions to perform adaptive supersampling on
an area.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libgimpcolor3-GimpAdaptiveSupersample.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()">*GimpProgressFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()">*GimpPutPixelFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()">*GimpRenderFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gulong</span>
</td>
<td class="function_name">
<a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#gimp-adaptive-supersample-area" title="gimp_adaptive_supersample_area ()">gimp_adaptive_supersample_area</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libgimpcolor3-GimpAdaptiveSupersample.description"></a><h2>Description</h2>
<p>Functions to perform adaptive supersampling on an area.</p>
</div>
<div class="refsect1">
<a name="libgimpcolor3-GimpAdaptiveSupersample.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="GimpProgressFunc"></a><h3>GimpProgressFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*GimpProgressFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">gint</span> min</code></em>,
                     <em class="parameter"><code><span class="type">gint</span> max</code></em>,
                     <em class="parameter"><code><span class="type">gint</span> current</code></em>,
                     <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<div class="refsect3">
<a name="GimpProgressFunc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GimpPutPixelFunc"></a><h3>GimpPutPixelFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*GimpPutPixelFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">gint</span> x</code></em>,
                     <em class="parameter"><code><span class="type">gint</span> y</code></em>,
                     <em class="parameter"><code><a class="link" href="libgimpcolor3-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
                     <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<div class="refsect3">
<a name="GimpPutPixelFunc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="GimpRenderFunc"></a><h3>GimpRenderFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*GimpRenderFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">gdouble</span> x</code></em>,
                   <em class="parameter"><code><span class="type">gdouble</span> y</code></em>,
                   <em class="parameter"><code><a class="link" href="libgimpcolor3-GimpRGB.html#GimpRGB" title="struct GimpRGB"><span class="type">GimpRGB</span></a> *color</code></em>,
                   <em class="parameter"><code><span class="type">gpointer</span> data</code></em>);</pre>
<div class="refsect3">
<a name="GimpRenderFunc.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span></td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-adaptive-supersample-area"></a><h3>gimp_adaptive_supersample_area ()</h3>
<pre class="programlisting"><span class="returnvalue">gulong</span>
gimp_adaptive_supersample_area (<em class="parameter"><code><span class="type">gint</span> x1</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> y1</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> x2</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> y2</code></em>,
                                <em class="parameter"><code><span class="type">gint</span> max_depth</code></em>,
                                <em class="parameter"><code><span class="type">gdouble</span> threshold</code></em>,
                                <em class="parameter"><code><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpRenderFunc" title="GimpRenderFunc ()"><span class="type">GimpRenderFunc</span></a> render_func</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> render_data</code></em>,
                                <em class="parameter"><code><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpPutPixelFunc" title="GimpPutPixelFunc ()"><span class="type">GimpPutPixelFunc</span></a> put_pixel_func</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> put_pixel_data</code></em>,
                                <em class="parameter"><code><a class="link" href="libgimpcolor3-GimpAdaptiveSupersample.html#GimpProgressFunc" title="GimpProgressFunc ()"><span class="type">GimpProgressFunc</span></a> progress_func</code></em>,
                                <em class="parameter"><code><span class="type">gpointer</span> progress_data</code></em>);</pre>
<div class="refsect3">
<a name="gimp-adaptive-supersample-area.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>x1</p></td>
<td class="parameter_description"><p>left x coordinate of the area to process.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y1</p></td>
<td class="parameter_description"><p>top y coordinate of the area to process.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>x2</p></td>
<td class="parameter_description"><p>right x coordinate of the area to process.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>y2</p></td>
<td class="parameter_description"><p>bottom y coordinate of the area to process.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>max_depth</p></td>
<td class="parameter_description"><p>maximum depth of supersampling.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>threshold</p></td>
<td class="parameter_description"><p>lower threshold of pixel difference that stops
supersampling.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>render_func</p></td>
<td class="parameter_description"><p>function calculate the color value at
given  coordinates. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>render_data</p></td>
<td class="parameter_description"><p>user data passed to <em class="parameter"><code>render_func</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>put_pixel_func</p></td>
<td class="parameter_description"><p>function to a pixels to a color at
given coordinates. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>put_pixel_data</p></td>
<td class="parameter_description"><p>user data passed to <em class="parameter"><code>put_pixel_func</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>progress_func</p></td>
<td class="parameter_description"><p>function to report progress. </p></td>
<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>progress_data</p></td>
<td class="parameter_description"><p>user data passed to <em class="parameter"><code>progress_func</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-adaptive-supersample-area.returns"></a><h4>Returns</h4>
<p> the number of pixels processed.</p>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>